<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@taglib uri="http://java.sun.com/jstl/core_rt" prefix="c-rt"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@page import="com.yaodian100.core.common.utils.ServerValue"%>
<c-rt:set var="midContextPath" value='<%=ServerValue.getMidContextPath() %>'/>
<style>
<!--
a{text-decoration: none !important;}
-->
</style>
<h1>广告管理 - 新增首页广告</h1>
<table class="tb-1"  width="100%" border="1">
	<thead>
		<tr>
			<th width="50%">新增四头标</th>
			<th width="50%">新增头部通栏广告</th>
		</tr>
	</thead>
	<tbody>
		<tr>
			<td>
				<s:if test='%{!"PCL".equals(from)}'>
				<a href="${midContextPath}/generate/top4Tag/addTop4Tag.do">
					<img alt="新增四头标" src="/eventImg/top4_tag.png">
				</a>
				</s:if>
				<s:else>&nbsp;</s:else>
			</td>
			<td>
				<s:if test='%{"PCL".equals(from)}'>
					<s:set name="linkParam" value='%{"?adv.advType=PCL_TOPSPAN&from=PCL"}' />
				</s:if>
				<s:else>
					<s:set name="linkParam" value='%{"?adv.advType=IDX_TOPSPAN&from=V5"}' />
				</s:else>
				<a href="${midContextPath}/generate/idxImageAdv/newIdxImageAdv.do${linkParam}">
					<img alt="新增头部通栏广告" src="/eventImg/idx_top_span.png">
				</a>
			</td>
		</tr>	
	</tbody>
	
	<thead>
		<tr>
			<th width="50%">新增广告大看版</th>
			<th width="50%">新增热销横幅</th>
		</tr>
	</thead>
	<tbody>
		<tr>
			<td>
				<s:if test='%{"PCL".equals(from)}'>
					<s:set name="linkParam" value='%{"?from=PCL"}' />
				</s:if>
				<s:else>
					<s:set name="linkParam" value='%{"?from=V5"}' />
				</s:else>
				<a href="${midContextPath}/generate/mainGold/addIdxMainGoldAdv_V2.do${linkParam}">
					<img alt="新增广告大看版" src="/eventImg/idx_maingold_v5.png">
				</a>
			</td>
			<td>
				<s:if test='%{"PCL".equals(from)}'>
					<s:set name="linkParam" value='%{"?adv.advType=PCL_HOTSALE_BANNER&from=PCL"}' />
				</s:if>
				<s:else>
					<s:set name="linkParam" value='%{"?adv.advType=IDX_HOTSALE_BANNER&from=V5"}' />
				</s:else>
				<a href="${midContextPath}/generate/idxImageAdv/newIdxImageAdv.do${linkParam}">
					<img alt="新增热销横幅" src="/eventImg/idx_hotsale_banner.png">
				</a>
			</td>
		</tr>	
	</tbody>
	
	<thead>
		<tr>
			<th width="50%">新增热销商品</th>
			<th width="50%">新增银行分期广告</th>
		</tr>
	</thead>
	<tbody>
		<tr>
			<td>
				<s:if test='%{"PCL".equals(from)}'>
					<s:set name="linkParam" value='%{"?from=PCL"}' />
				</s:if>
				<s:else>
					<s:set name="linkParam" value="" />
				</s:else>
				<a href="${midContextPath}/generate/idxHotSaleV5/addIdxHotSale.do${linkParam}">
					<img alt="新增热销商品" src="/eventImg/idx_hot_sale.png">
				</a>
			</td>
			<td>
				<s:if test='%{"PCL".equals(from)}'>
					<s:set name="linkParam" value='%{"?adv.advType=PCL_BANK_BANNER&from=PCL"}' />
				</s:if>
				<s:else>
					<s:set name="linkParam" value='%{"?adv.advType=IDX_BANK_BANNER&from=V5"}' />
				</s:else>
				<a href="${midContextPath}/generate/idxImageAdv/newIdxImageAdv.do${linkParam}">
					<img alt="新增银行分期广告" src="/eventImg/idx_bank_banner.png">
				</a>
			</td>
		</tr>	
	</tbody>
	
	<thead>
		<tr>
			<th width="50%">新增腰线广告</th>
			<th width="50%">新增精选特辑</th>
		</tr>
	</thead>
	<tbody>
		<tr>
			<td>
				<s:if test='%{"PCL".equals(from)}'>
					<s:set name="linkParam" value='%{"?adv.advType=PCL_WAISTLINE_V5&from=PCL"}' />
				</s:if>
				<s:else>
					<s:set name="linkParam" value='%{"?adv.advType=IDX_WAISTLINE_V5&from=V5"}' />
				</s:else>
				<a href="${midContextPath}/generate/idxImageAdv/newIdxImageAdv.do${linkParam}">
					<img alt="新增腰线广告" src="/eventImg/idx_waistline_v5.png">
				</a>
			</td>
			<td>
				<s:if test='%{"PCL".equals(from)}'>
					<s:set name="linkParam" value='%{"?from=PCL"}' />
				</s:if>
				<s:else>
					<s:set name="linkParam" value="" />
				</s:else>
				<a href="${midContextPath}/generate/idxSpecialAct/addIdxSpecialAct.do${linkParam}">
					<img alt="新增精选特辑" src="/eventImg/idx_special_act.png">
				</a>
			</td>
		</tr>	
	</tbody>
	
	<thead>
		<tr>
			<th width="50%">新增类别促销商品</th>
			<th width="50%">新增品牌推荐</th>
		</tr>
	</thead>
	<tbody>
		<tr>
			<td>
				<s:if test='%{"PCL".equals(from)}'>
					<s:set name="linkParam" value='%{"?from=PCL"}' />
				</s:if>
				<s:else>
					<s:set name="linkParam" value="" />
				</s:else>
				<a href="${midContextPath}/generate/idxSaleV5/addIdxSaleV5.do${linkParam}">
					<img alt="新增类别促销商品" src="/eventImg/idx_sale_v5.png">
				</a>
			</td>
			<td>
				<s:if test='%{"PCL".equals(from)}'>
					<s:set name="linkParam" value='%{"?from=PCL"}' />
				</s:if>
				<s:else>
					<s:set name="linkParam" value="" />
				</s:else>
				<a href="${midContextPath}/generate/idxBrandRecommend/addIdxBrandRecommend.do${linkParam}">
					<img alt="新增品牌推荐" src="/eventImg/idx_brand_recommend.png">
				</a>
			</td>
			<td>
			</td>
		</tr>	
	</tbody>
</table>